<?php

class Test_BO_User extends TestCase {
    
    protected function tearDown() {
        $this->_manager->delete($this->_user);
        parent::tearDown();
    }
    
    public function testCreate() {
        $this->_createUser();
        
        $this->assertEquals('Marcin Ciunelis', $this->_user->getName());
        $this->assertEquals('administrator', $this->_user->role);
    }
    
    private function _createUser() {
        $this->_user = $this->_manager->create('BO_User');
        $this->_user->firstName = 'Marcin';
        $this->_user->lastName = 'Ciunelis';
        $this->_user->login = 'eee';
        $this->_user->password = 'fddfd';
        $this->_user->email = 'ffff@gmail.com';
        $this->_user->role  = 'administrator';
    }
    
    
}

?>